package com.zyw.zhuangdian.pojo.dto;

import com.zyw.zhuangdian.constant.ServiceConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@ApiModel("操作记录表")
public class HistoryDto extends PageDto{
    @ApiModelProperty("主键id")
    private Long hid;
    @ApiModelProperty("访问者 32")
    private String uid;
    @ApiModelProperty("访问者昵称 32")
    private String nickname;
    @ApiModelProperty("访问ip 30")
    private String ip;
    @ApiModelProperty("访问接口")
    private String api;
    @ApiModelProperty("请求内容")
    private String requestContent;
    @ApiModelProperty("返回结果Code")
    private String responseHttpCode;
    @ApiModelProperty("返回结果")
    private String responseContent;
    @ApiModelProperty("记录状态 0 失效 1 有效")
    private int status = ServiceConstant.STATUS_VALID;
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
}
